//
//  AppContext.h
//  cleancar
//
//  Created by wangfang on 14-10-14.
//  Copyright (c) 2014年 edaijia-inc. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "EFLocationManager.h"
#import "EFShoppingCartManager.h"
#import "EFAddressManager.h"

#define isDebug YES
#define APP_CONTEXT [AppContext instance]

@class ICAccountManager;
@class ICNet;
@interface AppContext : NSObject

@property(nonatomic, readonly) ICAccountManager *accountManager;
@property (strong, nonatomic) EFLocationManager *locationManager;
@property (nonatomic, copy) NSString *whCode;//"发货仓编号"
@property (assign, nonatomic) BOOL isLocalDelivery;//0不在周边配送范围内 1在周边配送范围内
@property (readonly, nonatomic) ICNet *net;
@property (nonatomic, copy) NSString *clientId;
@property(readonly) NSString * bdMapApiKey;
@property (strong, nonatomic) EFShoppingCartManager *shoppingCartManager;
@property (strong, nonatomic) EFAddressManager *addressManager;

+ (instancetype)instance;
- (void)setUp;

@end
